<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link th:replace="layout :: head"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}" media="all"/>
</head>
<script type="text/javascript">
    if (top.location != self.location) {
        top.location = self.location;
    }
</script>
<body class="main_body">
<div class="layui-layout layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header header">
        <div class="layui-main mag0">
            <a href="#" class="logo">mimo</a>
            <!-- 显示/隐藏菜单 -->
            <i class="seraph hideMenu layui-icon layui-icon-shrink-right" style="font-size: 30px; color: #FFFFFF;"></i>
            &nbsp;
            <i class="layui-icon layui-icon-return showme-pointer " title="返回" id="myback" style="font-size: 20px; color: #FFFFFF;"></i>
            <!-- 顶部右侧菜单 -->
            <ul class="layui-nav top_menu">
                <li class="layui-nav-item" id="userInfo">
                    <a href="javascript:;"><cite class="adminName">MIMO管理员</cite></a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/logout}" class="signOut"><i class="seraph icon-tuichu"></i><cite>退出</cite></a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="navBar layui-side-scroll" id="navBar">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item layui-this">
                    <!-- 						<a href="javascript:;" data-url="test.html"><i class="layui-icon" data-icon=""></i><cite>后台首页</cite></a> -->
                </li>
            </ul>
        </div>
    </div>
    <!-- 右侧内容 -->
    <div class="layui-body layui-form" style="bottom: 0px;">
        <div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
            <ul class="layui-tab-title top_tab" id="top_tabs">
                <!-- 					<li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>后台首页</cite></li> -->
                <li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite></cite></li>
            </ul>
            <ul class="layui-nav closeBox">
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 页面操作</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="closePageOther"><i class="seraph icon-prohibit"></i> 关闭其他</a></dd>
                        <dd><a href="javascript:;" class="closePageAll"><i class="seraph icon-guanbi"></i> 关闭全部</a></dd>
                    </dl>
                </li>
            </ul>
            <div class="layui-tab-content clildFrame">
                <div class="layui-tab-item layui-show">
                    <iframe id="subframe" name="subframe"></iframe>
                </div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
</div>

<!-- 移动导航 -->
<div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
<div class="site-mobile-shade"></div>

<script th:replace="layout :: script"></script>
<script th:src="@{/js/common/index.js}"></script>
<script>

    layui.use(['table', 'jquery'], function () {
        var $ = layui.$;

        $("#myback").click(function () {
            var curmenu = JSON.parse(window.sessionStorage.getItem("curmenu"));
            var curwindow = $("iframe[src='" + curmenu.href + "']")[0].contentWindow;
            if (layui.sessionData('queryParam')[curwindow.location.pathname]) {
                return false;
            }
            curwindow.history.back();

            return false;
        });
    })
</script>
</body>
</html>